package com.sakiko.ioc_03.impl;

import com.sakiko.ioc_03.UserDao;
import org.springframework.stereotype.Repository;

// UserService中 private UserDao userDao是 “userDao”
// 如果有多个实现，也没有 "userDao"类，又都不起名 “userDao”，会按照类型相同报不唯一异常: NoUniqueBeanDefinitionException
@Repository("userDao1")
//@Repository()
public class UserDaoImpl implements UserDao {
    @Override
    public void query() {
        System.out.println("query...");
    }
}
